package com.ruoyi.wms.mapper;

import com.ruoyi.wms.domain.entity.MovementOrder;
import com.ruoyi.wms.domain.vo.MovementOrderVo;
import com.ruoyi.common.mybatis.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.MapKey;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

/**
 * 移库单Mapper接口
 *
 * @author zcc
 * @date 2024-08-09
 */
public interface MovementOrderMapper extends BaseMapperPlus<MovementOrder, MovementOrderVo> {

    /**
     * 首页不同移库类型的移库单数量
     * @param beginTime
     * @param endTime
     * @param granularity
     * @param orderStatus
     * @return
     */
    @MapKey("time")
    List<Map<LocalDateTime, Integer>> queryMovementOrderTrend(LocalDateTime beginTime, LocalDateTime endTime, Integer granularity, Integer orderStatus);
}
